#!/bin/sh
agominute=`date -d '+1 minute ago' '+[%d/%b/%Y:%H:%M'`
tac /usr/local/nginx/logs/access.log|awk '{if(substr($4,0,18) == agominute){print $0}else if($4<agominute){exit}}' agominute="${agominute}"
